function CapsLock()
{
	this.AttachControl;
	this.CapsLockAlert;
	this.AttachCaption;

	this.show = function()
	{
		///UserCodeRegionStart:[show] (do not remove this comment.)

		var mthis = this;
		var ctrl = document.getElementById(this.AttachControl);
		var alrt = document.getElementById(this.AttachCaption);
		
		ctrl.onkeypress = function(ev) {
			eval(ctrl.getAttribute("onkeypress"));//Execute previews event actions
			
			var e = ev||window.event;
			var k = e.keyCode?e.keyCode:e.charCode;//Detects the key pressed
			var s = e.shiftKey?e.shiftKey:((k==16)?true:false);//Detects ShiftKey
			
			if(((k >= 65 && k <= 90) && !s) || ((k >= 97 && k <= 122) && s)) {
				alrt.innerHTML = mthis.CapsLockAlert;
			} else {
				alrt.innerHTML = '';
			}
		};
		
		///UserCodeRegionEnd: (do not remove this comment.)
	}
	///UserCodeRegionStart:[User Functions] (do not remove this comment.)
	
	///UserCodeRegionEnd: (do not remove this comment.):
}
